<table class="member-grid" style="text-align:center" id="switchable">
	<thead>
		<tr>
			<th colspan="2" style="text-align:center;" width="30%"><{t}>商品编号<{/t}></th>
			<th width="20%" style="text-align:center;"><{t}>商品名称<{/t}></th>
			<th width="15%" style="text-align:center;"><{t}>计划数量<{/t}></th>
			<th style="text-align:center;" width="15%"><{t}>实际集货数量<{/t}></th>
			<th style="text-align:center;" width="20%"><{t}>操作<{/t}></th>
		</tr>
	</thead>
	<tbody>
	<{if $goodscollection}>
        <{if $status != 2 && $order_status != 'dead'}>
	    <tr><td colspan=7>
			<div class="operations mr_5" align="left">
				<span class="lineall" style="margin-top:4px; margin-left:5px;"><input type="checkbox" class=" all-selector" onclick="selectAll(this)"><label><{t}>全选<{/t}></label></span>
				<button class="trigger-btn" id="confirm_batch" onclick="javascript:(0);" type="button" style="background-color:gray;border:0;color:white;padding:5px 20px;"><{t}>批量确认<{/t}></button>
				<button class="trigger-btn" id="confirm_final" onclick="goods_confirm('final');" type="button" style="background-color:#f18007;border:0;color:white;padding:5px 20px;"><{t}>确认完成<{/t}></button>
			</div>
		</td></tr>
		<{/if}>
		<{foreach from=$goodscollection item=items key=key}>
        <tbody>
			<tr>
				<td>
					<{if $status != 2 && $order_status != 'dead'}>
					<input class="selector" type="checkbox" name="item[]" value="<{$items.obj_id}>" onclick="do_select();">
					<{/if}>
				</td>
				<td><img src="<{$items.image_default_id|default:$defaultImage|storager:'s'}>" style=" vertical-align:middle; width:40px;"/><{$items.bn}></td>
				<td><{$items.name}></td>
				<td>
				    <{$items.has_confirm_num}>
					<input type="hidden" value="<{$items.has_confirm_num}>" class="quantity"/>
					<input type="hidden" name="goods_id[<{$items.obj_id}>]" value="<{$items.goods_id}>"/>
				</td>
				<td>
					<input type="text" size="5" onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this)" id="con_num[<{$items.obj_id}>]" name="con_num[<{$items.obj_id}>]" class="toShare" rel="<{$items.obj_id}>" value="<{$items.gc_confirm_num}>" <{if $status == 2}> readonly="readonly" <{/if}>/>
				</td>
				<td class="actions">
				    <{if $order_status == 'dead'}>
                        <{t}>已作废<{/t}>
                    <{else}>
						<{if $status == 2}>
						<{t}>集货完毕<{/t}>
						<{else}>
						<input type="hidden" name="is_share" value="<{$items.goods.goods_confirm}>"/>
						<a href="<{link app=b2c ctl=site_member act=do_sgc_edit arg0=$items.obj_id arg1=$items.goods_id}>" class="single_confirm"><i class="icon icon-success" style="font-size:25px">%</i></a>
						<{/if}>
					<{/if}>
				</td>
			</tr>
         </tbody>
		<{/foreach}>
	<{else}>
		<tr><td colspan=5><{t}>暂无商品<{/t}></td></tr>
	<{/if}>
	</tbody>
</table>




